日志样式

帧中继交换机和路由器模拟配置

帧中继拓扑连接:
帧中继交换机和路由器模拟配置
router1的s0/0端口与FR的s0/0端口连接!
router2的s0/0端口与FR的s0/1端口连接!
router3的s0/0端口与FR的s0/2端口连接!
帧中继交换机的模拟配置:

  1. Router>enable
  2. Router# config term
  3. Router(config)# hostname FR
  4. FR(config)# frame-relay switching
  5. FR(config)# interface s0/0
  6. FR(config-if)# encapsulation frame
  7. FR(config-if)# frame lmi-type cisco
  8. FR(config-if)# frame intf-type dce
  9. FR(config-if)# frame route 102 interface s0/1 201
  10. FR(config-if)# frame route 103 interface s0/2 301
  11. FR(config-if)# clock rate 128000
  12. FR(config-if)# no shutdown
  13. FR(config-if)# exit
  14. FR(config)# interface s0/1
  15. FR(config-if)# encapsulation frame
  16. FR(config-if)# frame lmi-type cisco
  17. FR(config-if)# frame intf-type dce
  18. FR(config-if)# frame route 201 interface s0/1 102
  19. FR(config-if)# frame route 203 interface s0/2 302
  20. FR(config-if)# clock rate 64000
  21. FR(config-if)# no shutdown
  22. FR(config-if)# exit
  23. FR(config)# interface s0/2
  24. FR(config-if)# encapsulation frame
  25. FR(config-if)# frame lmi-type cisco
  26. FR(config-if)# frame intf-type dce
  27. FR(config-if)# frame route 301 interface s0/1 103
  28. FR(config-if)# frame route 302 interface s0/2 203
  29. FR(config-if)# clock rate 64000
  30. FR(config-if)# no shutdown
  31. FR(config-if)# exit
验证:
这里Status为Inactive的原因是对端路由器还没有配置。

  1. FR#show fram route
  2. Input Intf Input Dlci Output Intf Output Dlci Status
  3. Serial0/0 102 Serial0/1 201 inactive
  4. Serial0/0 103 Serial0/2 301 inactive
  5. Serial0/1 201 Serial0/0 102 inactive
  6. Serial0/1 203 Serial0/2 302 inactive
  7. Serial0/2 301 Serial0/0 103 inactive
  8. Serial0/2 302 Serial0/1 203 inactive
帧中继交换机和路由器模拟配置
路由器的帧中继基本配置

  1. R1(config)# interface s0/0
  2. R1(config-if)# encapsulation frame //封装为帧中继
  3. R1(config-if)# no frame inverse-arp //关闭自动获取
  4. R1(config-if)# ip address 192.168.1.1 255.255.255.0
  5. R1(config-if)# frame map ip 192.168.1.2 102
  6. R1(config-if)# frame map ip 192.168.1.3 103
  7. R1(config-if)# no shutdown
  8.  
  9. R2(config)# interface s0/0
  10. R2(config-if)# encapsulation frame //封装为帧中继
  11. R2(config-if)# no frame inverse-arp //关闭自动获取
  12. R2(config-if)# ip address 192.168.1.2 255.255.255.0
  13. R2(config-if)# frame map ip 192.168.1.1 201 //手工指定DLCI 和IP 的映射
  14. R2(config-if)# no shutdown
  15. R2(config-if)# interface lo 0
  16. R2(config-if)# ip address 10.1.0.1 255.255.255.0
  17. R2(config-if)# interface lo 1
  18. R2(config-if)# ip address 10.1.1.1 255.255.255.0
  19. R2(config-if)# interface lo 2
  20. R2(config-if)# ip address 10.1.2.1 255.255.255.0
  21. R2(config-if)# interface lo 3
  22. R2(config-if)# ip address 10.1.3.1 255.255.255.0
  23.  
  24. R3(config)# interface s0/0
  25. R3(config-if)# encapsulation frame //封装为帧中继
  26. R3(config-if)# no frame inverse-arp //关闭自动获取
  27. R3(config-if)# ip address 192.168.1.3 255.255.255.0
  28. R3(config-if)# frame map ip 192.168.1.3 301 //手工指定DLCI 和IP 的映射
  29. R3(config-if)# no shutdown
  30. R3(config-if)# interface lo 0
  31. R3(config-if)# ip address 172.16.0.1 255.255.255.0
  32. R3(config-if)# interface lo 1
  33. R3(config-if)# ip address 172.16.1.1 255.255.255.0
  34. R3(config-if)# interface lo 2
  35. R3(config-if)# ip address 172.16.2.1 255.255.255.0
  36. R3(config-if)# interface lo 3
  37. R3(config-if)# ip address 172.16.3.1 255.255.255.0
注意,在作DLCI 和IP 映射时,我们没有使用broadcast 参数!
验证:

  1. R1#show frame-relay map
  2. Serial0/0 (up): ip 192.168.1.2 dlci 102(0×66,0×1860), static,
  3. CISCO, status defined, active
  4. Serial0/0 (up): ip 192.168.1.3 dlci 103(0×67,0×1870), static,
  5. CISCO, status defined, active
  6. R1#ping 192.168.1.2
  7.  
  8. Type escape sequence to abort.
  9. Sending 5, 100-byte ICMP Echos to 192.168.1.2, timeout is 2 seconds:
  10. !!!!!
  11. Success rate is 100 percent (5/5), round-trip min/avg/max = 8/45/96 ms
  12. R1#ping 192.168.1.3
  13.  
  14. Type escape sequence to abort.
  15. Sending 5, 100-byte ICMP Echos to 192.168.1.3, timeout is 2 seconds:
  16. !!!!!
  17. Success rate is 100 percent (5/5), round-trip min/avg/max = 16/51/100 ms

上一篇:EIGRP路由协议的配置实例解析(1)
下一篇:没有了